import request from '@/router/axios'

/**
 * 用户账号：登录获取初始化服务端session链接

 */
export const checkLoginByAccount = (params) => {
  return request({
    url: '/backend/login/checkLoginByAccount',
    method: 'post',
    data: params
  })
}

/**
 * 用户账号：获取到用户信息

 */
export const callBack = () => {
  return request({
    url: '/backend/login/callBack',
    method: 'post'
  })
}

export const getCode = () => {
  return request({
    url: '/backend/login/getCode',
    method: 'post'
  })
}
